// 商家管理
import { getapi,postapi } from "@/utils/request";

export const merchantList = (data) => getapi("/console/client", data);

export const merchantCreated = (data) => postapi("/console/client/created", data);

export const merchantUpdated = (data) => postapi(`/console/client/updated/${data.client_no}`, data);

export const merchantDetail = (client_no) => getapi(`/console/client/detail/${client_no}`);

export const merchantConfigInit = () => getapi("/console/client/init");

// 商家关联设备
export const deviceList = (data) => getapi("/console/device", data);

export const getDeviceStatusEnum = () => getapi("/console/device/getDeviceStatusEnum");

export const getProvider = () => getapi("/console/provider");

export const getClientDeviceBySn = (data) => postapi(`/console/client/getClientDeviceBySn`,data);